import request from '@/utils/request'

// 查询环境指标记录列表
export function listEnvironmentIndicator(query) {
  return request({
    url: '/kindergarten/environmentIndicator/list',
    method: 'get',
    params: query
  })
}

// 查询环境指标记录详细
export function getEnvironmentIndicator(id) {
  return request({
    url: '/kindergarten/environmentIndicator/' + id,
    method: 'get'
  })
}

// 新增环境指标记录
export function addEnvironmentIndicator(data) {
  return request({
    url: '/kindergarten/environmentIndicator',
    method: 'post',
    data: data
  })
}

// 修改环境指标记录
export function updateEnvironmentIndicator(data) {
  return request({
    url: '/kindergarten/environmentIndicator',
    method: 'put',
    data: data
  })
}

// 删除环境指标记录
export function delEnvironmentIndicator(id) {
  return request({
    url: '/kindergarten/environmentIndicator/' + id,
    method: 'delete'
  })
}
